<style>
.table-other{color:#000;font-size:12px}
.table-other td{line-height: 26px !important;}
.table-other td > div{ height:26px; overflow:hidden;}
</style>
<div class="planTitl1" style="color:white">已完成 >></div>
<hr style="clear:left;margin:15px 0 35px" />
<table id="task" class="table table-other table-hover general-table table-striped">
    <tbody>
    <volist name="task" id="task">
        <tr rel="{:U('Task_daily/edit',['id'=>$task['id'],'rank'=>$i])}">
            <td class="straight">
                <a href="#">
                    <i class="fa icon-check-square-o" style="font-size:16px;color:#9EDDC6;margin-right:5px"></i>{$group}
                </a>
            </td>
            <td class="col-lg-2"><div>{$task.type_name}</div></td>
            <td class="col-lg-4">{$task.title}</td>
            <td class="straight"><php>echo date('Y/m/d',$task['progresstime']);</php></td>
            <td class="done straight">已完成</td>
            <td class="straight">{$task.member_name}</td>
            <?php if($task['creator_id']==$memberInfo['id']){ ?>
                <td  rel="{:U('Mission/read', array('task_id' => $task['id']))}">
                    <?php  $missionStatus=M('Mission')->where(['task_hide_id'=>$task['id']])->getField('state');
                        if($missionStatus==='0'||$missionStatus==='3'){ ?>
                        <button class="btn btn-sm btn-success">查看</button>
                    <?php }else{ ?> 
                        <button class="btn btn-sm btn-danger">审批</button>
                    <?php } ?>
                </td>
            <?php }else{
            	echo '<td></td>';
            } ?>
        </tr>
    </volist>
    <script>
		//点击弹窗
		$("#task td").click(function(e) {
			if($(this).attr('rel')){
				_openWindow($(this).attr('rel'),800,'审批','确定',null);
			}else{
				_openWindow($(this).parent().attr('rel'),1000, '任务详情', '确定',function(){ $("#donelistform").submit(); });
			}
        });
	</script>
    </tbody>
</table>